var http = require('./require.js')
// 获取工单列表
function GetOrderList(data) {
  if (!data) {
    data = {}
  }
  return http.Request({
    'url': '/kf/api/WorkOrder/GetWxOrderList',
    'method': 'post',
    'data': data
  })
}

function GetListAudit(data) {
  if (!data) {
    data = {}
  }
  return http.Request({
    'url': '/kf/api/WorkOrder/GetListAudit',
    'method': 'post',
    'data': data
  })
}
// 获取各状态工单数量 -- 首页
function GetOrderStatusCount(data) {
  if (!data) {
    data = {}
  }
  return http.Request({
    'url': '/kf/api/WorkOrder/GetWxOrderStatusCount',
    'method': 'post',
    'data': data
  })
}
// 获取各状态工单数量 --我的
function GetWxMyOrderCount(data) {
  if (!data) {
    data = {}
  }
  return http.Request({
    'url': '/kf/api/WorkOrder/GetWxMyOrderCount',
    'method': 'post',
    'data': data
  })
}

function GetWxOrderStatusCount(data) {
  if (!data) {
    data = {}
  }
  return http.Request({
    'url': '/kf/api/WorkOrder/GetWxOrderStatusCount',
    'method': 'post',
    'data': data
  })
}
// 获取工单详情
function GetOrderDetail(data) {
  if (!data) {
    data = {}
  }
  return http.Request({
    'url': '/kf/api/WorkOrder/GetOrderDetail',
    'method': 'post',
    'data': data
  })
}
// 接收工单
function ReceiveOrder(orderId) {
  return http.Request({
    'url': '/kf/api/WXRecord/ReceiveOrder?orderId=' + orderId,
    'method': 'post'
  })
}
// 工单流程
function UpdateOrderProcedure(data) {
  if (!data) {
    data = {}
  }
  return http.Request({
    'url': '/kf/api/WorkOrderProcedure/Update',
    'method': 'post',
    'data': data
  })
}
// 工单审核（测温类）
function Examine(data) {
  if (!data) {
    data = {}
  }
  return http.Request({
    'url': '/kf/api/WorkOrderTempInfo/Exam',
    'method': 'post',
    'data': data
  })
}
// 工单地址列表
function GetOrderAddressList(data) {
  if (!data) {
    data = {}
  }
  return http.Request({
    'url': '/kf/api/WorkOrder/GetOrderAddressList',
    'method': 'post',
    'data': data
  })
}
// 工单排行
function GetOrderReport(data) {
  if (!data) {
    data = {}
  }
  return http.Request({
    'url': '/kf/api/WorkOrder/GetOrderReport',
    'method': 'post',
    'data': data
  })
}

function GetWorkOperTotal(data) {
  if (!data) {
    data = {}
  }
  return http.Request({
    'url': '/kf/api/WorkOrder/GetWorkOperTotalList',
    'method': 'post',
    'data': data
  })
}


function GetComplainCount(data) {
  return http.Request({
    'url': '/kf/api/WorkOrderTempInfo/GetComplainCount',
    'method': 'post',
    'data': data
  })
}




function GetUrgency() {
  return http.Request({
    'url': '/kf/api/Urgency/GetList',
    'method': 'post'
  })
}

function GetWxReportOrderCount(data) {
  return http.Request({
    'url': '/kf/api/WorkOrder/GetWxReportOrderCount',
    'method': 'post',
    'data': data
  })
}
module.exports = {
  GetOrderList: GetOrderList,
  GetWorkOperTotal: GetWorkOperTotal,
  GetPCode: GetPCode,
  GetPCodeList: GetPCodeList,
  SendMsg: SendMsg,
  GetMsgList: GetMsgList,
  ChangeMsgStatus: ChangeMsgStatus,
  ChangeAllStatus: ChangeAllStatus,
  GetNotice: GetNotice,
  GetOrderStatusCount: GetOrderStatusCount,
  GetWxOrderStatusCount: GetWxOrderStatusCount,
  GetOrderDetail: GetOrderDetail,
  UpdateOrderProcedure: UpdateOrderProcedure,
  GetOrderAddressList: GetOrderAddressList,
  GetOrderReport: GetOrderReport,
  GetWxMyOrderCount: GetWxMyOrderCount,
  GetRepairDeptListTree: GetRepairDeptListTree,
  ReceiveOrder: ReceiveOrder,
  GetListAudit: GetListAudit,
  Examine: Examine,
  GetComplainCount: GetComplainCount,
  GetRepairLogList: GetRepairLogList,
  AcceptRepair: AcceptRepair,
  TranspondRepair: TranspondRepair,
  GetDeptListTree: GetDeptListTree,
  GetUrgency: GetUrgency,
  GetWxReportOrderCount: GetWxReportOrderCount
}